/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.mapper;

import com.comac.ins.common.mybatis.core.mapper.BaseMapperPlus;
import com.comac.ins.isfd.domain.IsfdDatasourceTemplate;
import com.comac.ins.isfd.domain.vo.IsfdDatasourceTemplateVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 数据源数据模版Mapper接口
 *
 * @author Lion Li
 * @date 2024-10-11
 */
@Mapper
public interface IsfdDatasourceTemplateMapper extends BaseMapperPlus<IsfdDatasourceTemplate, IsfdDatasourceTemplateVo> {
    Integer queryTemplateHasUsed(@Param("templateId") Long templateId);

    List<IsfdDatasourceTemplateVo> queryTemplateByCondition(@Param("businessId")Long businessId, @Param("databaseType") String databaseType);
}
